import request from '@/utils/request'

export const orderAPI = {
  list: (userId) => request.get('/order/orders', { params: { userId } }),
  create: (data) => request.post('/order/orders', data),
  cancel: (id) => request.delete(`/order/orders/${id}`)
}


